package com.changpay.zywy.mvp.contract

import com.changpay.zywy.base.IModel
import com.changpay.zywy.base.IPresenter
import com.changpay.zywy.base.IView
import com.changpay.zywy.bean.*
import io.reactivex.Observable

interface MessageContract {
    interface View : IView {
        fun showTixanMessage(data:List<TiXianMessageBean>)
        fun showAwardMessage(data:List<JiangLiMessageBean>)
        fun showSystemMessage(data:List<SystemMessageBean>)

    }

    interface Presenter : IPresenter<View> {
        fun getTixianMessage(map: MutableMap<String, String>)
        fun getAwardMessage(map: MutableMap<String, String>)
        fun getSystemMessage(map: MutableMap<String, String>)
    }

    interface Model : IModel {
        fun getTixianMessage(map: MutableMap<String, String>): Observable<HttpResult<List<TiXianMessageBean>>>
        fun getAwardMessage(map: MutableMap<String, String>): Observable<HttpResult<List<JiangLiMessageBean>>>
        fun getSystemMessage(map: MutableMap<String, String>): Observable<HttpResult<List<SystemMessageBean>>>
    }
}